package com.bawei.hfgc.frgacty.view;

import androidx.databinding.library.baseAdapters.BR;
import androidx.fragment.app.Fragment;


import android.graphics.Color;
import android.os.Bundle;
import android.util.Log;
import android.view.View;

import com.alibaba.android.arouter.launcher.ARouter;
import com.bawei.hfgc.frgacty.viewModel.FregmViewModel;
import com.bawei.hfgc.R;
import com.bawei.hfgc.databinding.ActivityFragmentctivityBinding;

import com.bawei.mvvmcomm.mvvm.view.BaseActivity;
import com.bawei.networkmoudle.uitls.LogUtils;

import java.util.ArrayList;
import java.util.List;

 public class  FragmentActivity extends BaseActivity<ActivityFragmentctivityBinding, FregmViewModel> {

    @Override
    protected boolean isFullScreen() {
        return false;
    }

    @Override
    protected int setColor() {
        return R.color.common_blue;
    }

    @Override
    protected int initVariable() {
        return BR.vm;
    }

    @Override
    public int bindLayout() {
        return R.layout.activity_fragmentctivity;
    }

    //s 代表fragment路由地址
    @Override
    protected void selFragment(String s) {
        super.selFragment(s);
        Fragment fragment = (Fragment) ARouter.getInstance().build(s).navigation();
        getSupportFragmentManager().beginTransaction().replace(R.id.main_fg_linear,fragment).commit();
    }
}